package com.jjb.saas.demo.client.role.response;

import com.alibaba.cola.dto.ClientObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jjb.saas.framework.adapter.serialize.annotation.BaseEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author tzh * @date 2022年07月14日 10:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RoleDetailCO extends ClientObject {
    private Long id;
    @ApiModelProperty(value = "角色名称")
    private String roleName;
    @ApiModelProperty(value = "角色状态启用禁用（TRUE,FALSE）")
    @BaseEnum(dictType = "system_status_enums")
    private String statusEnum;
    @ApiModelProperty(value = "角色编码")
    private String roleCode;
    @ApiModelProperty(value = "角色类型")
    @BaseEnum(dictType = "sys_role_type_enum")
    private String roleTypeEnum;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "权限组ID")
    private List<Long> permsGroupIds;
}
